<html>
    <head>
        <script type="text/javascript" src='/js/jquery-1.11.1.min.js'></script>
        <link type="text/css" href="/css/style.css" rel="stylesheet">
        <link href="/css/uploadify.css" rel="stylesheet">
    </head>
    <body>
        <form action="#" method="post" name="myform" id="myform">
                                          <table width="100%" class="table_form">
                                          <tbody>
                                            <tr>
                                              <td>名称</td>
                                              <td><input type="text" name="bank_name" class="input-text" id="bank_name" value="<{$info.domain}>"></td>
                                        </tr>
                                          <tr>
                                          <td>域名</td> 
                                          <td><input type="text" name="domain" class="input-text" id="domain" value="<{$info.domain}>"></td>
                                          </tr>
                                          <tr>
                                          <td width="80">登陆背景</td> 
                                          <td><label>
                                            <input type="file" name="uploadify" id="uploadify" />
                                          </label>
                                              <input type="hidden" name="cover" id="cover" value="<{$info.background}>">
                            <div id="cases_img"><{if $info.background}><img src="<{$info.background}>" class="img-responsive"><{/if}></div>
                                          </td>
                                          </tr>
                                          </tbody></table>
                                          <div class="bk15"></div>
                                          <input type="hidden" name="bank_id" value="<{$info.bank_id}>">
                                          <input type="submit" class="button" value="提交" name="dosubmit">
                                         </form>
    </body>
</html>
<script src="/js/jquery.uploadify.min.js"></script>
<script type="text/javascript">
   
    $('#uploadify').uploadify({
        'buttonText' : '选择文件',
        'fileObjName' : 'upfile',   
        'swf'      : 'http://mystery.local.com/js/uploadify.swf',
        'fileTypeExts' : '*.gif; *.jpg; *.png',
        'uploader' : 'http://mystery.local.com/webadmin/attach/do?attach_type=bank',
        'debug': true,
        'onUploadSuccess' : function(file, data, response) {
                alert(data);
        } 
    });
    
</script>